#ifndef VIDEOREQUESTTOSERVER_H
#define VIDEOREQUESTTOSERVER_H

#include "./entities/message/superClass/message.h"

class VideoRequestToServer : public Message
{
public:
    VideoRequestToServer() = delete;

    VideoRequestToServer(const UserId& userId, const Ip& userIp, const FriendId& friendId);
    VideoRequestToServer(const QJsonObject&);
    QJsonObject PackJsonData() const override;
    UserId getUserId() const;
    Ip getUserIp() const;
    FriendId getFriendId() const;

private:
    UserId m_userId;
    Ip m_userIp;
    FriendId m_friendId;
};

// 编译时注册
Q_DECLARE_METATYPE(VideoRequestToServer)

#endif // VIDEOREQUESTTOSERVER_H
